﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MiData
{
    public enum AutoSync
    {
        Never,
        None
    }

    [AttributeUsage(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Property,AllowMultiple=true)]
    public class Column : Attribute
    {
        public string Storage { get; set; }
        public string Name { get; set; }
        public string DbType { get; set; }
        public AutoSync AutoSync{get;set;}

        /// <summary>
        /// 自增长字段
        /// </summary>
        public bool Automatic { get; set; }

        /// <summary>
        /// 主键
        /// </summary>
        public bool PK { get; set; }
    }
}
